/**
 * Created by lanjiangweb on 2018/3/29.
 */


var user={

    getUserInfo:function () {
        var userId=cookie.get("user");
        if(userId){
            console.log(userId);
            var url=webApi+"user/info/"+userId;
            $.ajax({
                url:url,
                type: 'GET',
                success: function (data) {
                    if(data!==''){
                        data =  JSON.parse(data)
                        return data;
                    } else{
                        return false
                    }
                }
            })
        }
        else {
            return false;
        }


    }
}

